#ifndef ROTATEDGAUSSSEIDELSOLVER2_H
#define ROTATEDGAUSSSEIDELSOLVER2_H
#include "gaussseidelsolver.h"
#include <QVector>

class RotatedGaussSeidelSolver2 : public GaussSeidelSolver
{
protected:
    double iteration();
    const double alpha;

    bool unpenetration;


    QVector<double> l;
public:
    RotatedGaussSeidelSolver2(int _n, double mu1=0.3, double e1=2.1e6);
    void setUnpenetrationCondition(bool cond);
    void setFrictionCondition(bool cond);
    void setLagrangeFunctionCondition(bool cond);
    void turnCoordinatesBack();

};

#endif // ROTATEDGAUSSSEIDELSOLVER2_H
